package com.itheima.controller;

import com.itheima.domain.db.Log;
import com.itheima.service.db.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/log")
public class LogController {
    @Autowired
    private LogService logService;
    @PostMapping("/save")
    public void save(@RequestBody Log log) {
        logService.save(log);
    }
}
